<!doctype html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="|lookroot-${title}|">默认的title</title>
    <meta name="description" th:content="${description}">
    <meta name="keywords" th:content="${keywords}">

    <div th:replace="~{component::com1}">aaa</div>
    <div th:insert="~{component::com1}"></div>

    <div th:insert="~{component::#com2}"></div>

    <div th:insert="~{component::com3('传递数据')}"></div>
    <hr>

    <div th:insert="~{component::com4(~{::#message})}">
        <p id="message">替换的message</p>
    </div>
<!--    <div th:fragment="com4(message)">-->
<!--        <p th:replace="${message}">原本的message</p>-->
<!--    </div>-->
</head>
</html>